all: meth

# CC =
# CCFLAGS =
#
# INSTALL_PATH =
# INCLUDE_PATH =
# DYLIB_PATH =

# build
meth: main.c ./core/core.c ./utils/utils.c ./utils/os.c ./http/http_serv.c ./http/http_cli.c ../third-party/cJSON/cJSON.c
	$(CC) main.c ./core/core.c ./utils/utils.c ./utils/os.c ./http/http_serv.c ./http/http_cli.c ../third-party/cJSON/cJSON.c -o meth \
		$(CCFLAGS) \
		$(INCLUDE_PATH) \
		$(DYLIB_PATH) -lpthread

	mv meth $(INSTALL_PATH)

# clean
clean:
	-@find . -type f -name "*.so" -o -name "*.o" -o -name "a.out" | xargs rm -f
